<?php include ('incphp/data.php');
include ('incphp/project_get_info.php'); // retrieves project info to fill form
include ('incphp/update_markers_condensed.php'); //handles saving marker positions

?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml">
  <head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
    <title>A Walk Down Friargate</title>
	<link rel="stylesheet" href="css/editor.css" type="text/css" />

<!-- USE PHP to write out this file -->
<?php
// Get Markers array
include ('incphp/get_markers.php'); //reads marker details from database into myobj - here in file header
//include ('incphp/fit_background.php'); 
?>
<!-- <script language="javascript" src="javascript/full_markers2.js"></script>  -->

<script type="text/javascript" src="javascript/jquery-1.3.2.js"></script>
<script type="text/javascript" src="javascript/ui.core.js"></script>
<script type="text/javascript" src="javascript/ui.draggable.js"></script>
 
<script language="javascript" src="javascript/newWindow.js"></script> 
<?php echo '<script language="javascript">var Project = '.$project_id.'</script>';?>
<script type="text/javascript" charset="utf-8" src="javascript/pop7.js"></script>	
  
</head>

  <body>
    <div id="header"> <h1><?php echo $project_title; ?></h1></div> 

<div id="topnav">
<ul>
	<li><a href="ed01.php">1. Choose Project &rarr; </a>  
	<li><a href="ed02.php?project_id=<?php echo $project_id; ?>"  >2. Edit Project &rarr; </a></li>
	<li><a href="ed03.php?project_id=<?php echo $project_id; ?>"  >3. Add Images &rarr; </a></li>
	<li class="active"><a href="ed04.php?project_id=<?php echo $project_id; ?>"  >4. Add Markers &rarr; </a></li>
	<li><a href="ed05.php?project_id=<?php echo $project_id; ?>"  >5. Edit Pop-ups &rarr; </a></li>
	<li><a href="ed06.php?project_id=<?php echo $project_id; ?>" >6. Preview </a></li>
</ul>
	</div>
	
	<div id="container">
		<div id="map_canvas">
		
		</div>
	
	</div>
	<div id="footer"> <p>JISC Rapid Innovation Project - Designlab - University of Central Lancashire
	<input type="button" onclick="javascript:preparray2(<?php echo $project_id; ?>)" value="Save marker positions" /></p>
	</div>
	<div id="backgroundPopup"></div> 	
	
  </body>
</html>
